typedef struct {
unsigned char pad1[8]; /* 0xfe, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x00 */
/* coordination are in old israeli grid */
- gbuint32 East;
- gbuint32 North;
+ gbint32 East;
+ gbint32 North;
unsigned char pad2[2]; /* 0x01, 0x01 */
gbuint32 Alt;
char CommentLength;
fatal(MYNAME ": Waypoint %d is out of the israeli grid area", current_wp_ix);
}
- WPNC.wp_data.North = (gbuint32)lat;
- WPNC.wp_data.East = (gbuint32)lon;
+ WPNC.wp_data.North = (gbint32)lat;
+ WPNC.wp_data.East = (gbint32)lon;
if (reorder_wp) {
sprintf(temp_short_name, "A%03d", current_wp_ix);
--- /dev/null
+<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>\r
+<gpx\r
+ version="1.1"\r
+ creator="tsteven4"\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xmlns="http://www.topografix.com/GPX/1/1"\r
+ xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">\r
+<!-- These points walk around 0 Easting 0 Northing to find sign problems. -->\r
+<wpt lat="22.556257" lon="32.568393">\r
+<name>1</name>\r
+</wpt>\r
+<wpt lat="22.556257" lon="34.568393">\r
+<name>2</name>\r
+</wpt>\r
+<wpt lat="20.556257" lon="34.568393">\r
+<name>3</name>\r
+</wpt>\r
+<wpt lat="20.556257" lon="32.568393">\r
+<name>4</name>\r
+</wpt>\r
+</gpx>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<gpx
+ version="1.0"
+ creator="GPSBabel - http://www.gpsbabel.org"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://www.topografix.com/GPX/1/0"
+ xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
+<time>1970-01-01T00:00:00Z</time>
+<bounds minlat="20.556257939" minlon="32.568395522" maxlat="22.556254099" maxlon="34.568387647"/>
+<rte>
+ <rtept lat="22.556250760" lon="32.568395669">
+ <ele>0.000000</ele>
+ <name>1</name>
+ <cmt>1</cmt>
+ <desc>1</desc>
+ </rtept>
+ <rtept lat="22.556254099" lon="34.568387354">
+ <ele>0.000000</ele>
+ <name>2</name>
+ <cmt>2</cmt>
+ <desc>2</desc>
+ </rtept>
+ <rtept lat="20.556260799" lon="34.568387647">
+ <ele>0.000000</ele>
+ <name>3</name>
+ <cmt>3</cmt>
+ <desc>3</desc>
+ </rtept>
+ <rtept lat="20.556257939" lon="32.568395522">
+ <ele>0.000000</ele>
+ <name>4</name>
+ <cmt>4</cmt>
+ <desc>4</desc>
+ </rtept>
+</rte>
+</gpx>
#
gpsbabel -i naviguide -f ${REFERENCE}/route/naviguide-route.twl -o gpx -F ${TMPDIR}/naviguide.gpx
compare ${REFERENCE}/route/naviguide.gpx ${TMPDIR}/naviguide.gpx
+# Make sure ICS negative eastings and northings work.
+gpsbabel -i gpx -f ${REFERENCE}/ics.gpx -o naviguide -F ${TMPDIR}/ics.gpx.naviguide
+gpsbabel -i naviguide -f ${TMPDIR}/ics.gpx.naviguide -o gpx -F ${TMPDIR}/ics.gpx.naviguide.gpx
+compare ${REFERENCE}/ics.gpx.naviguide.gpx ${TMPDIR}/ics.gpx.naviguide.gpx
#
# Basic VPL test